package com.gcb.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gcb.domain.dto.CrewQueryDTO;
import com.gcb.domain.entity.Crew;
import com.gcb.domain.vo.CrewVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CrewMapper extends BaseMapper<Crew> {

    List<CrewVO> pageList(CrewQueryDTO dto);

    CrewVO selectOne(CrewQueryDTO dto);

    /**
     * 验证手机号是否已经船员认证，审核中也算
     * @param mobile
     * @return
     */
    Boolean checkAuth(String mobile);
}
